home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000215_news@newsmaster….columbia.edu _Thu Feb 12 12:41:36 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA04203
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 12 Feb 1998 12:41:36 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA07395
  7.     for kermit.misc@watsun; Thu, 12 Feb 1998 12:41:35 -0500 (EST)
  8. Path: news.columbia.edu!panix!nntprelay.mathworks.com!newsfeed.internetmci.com!4.1.16.34!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news.Stanford.EDU!nntp.Stanford.EDU!not-for-mail
  9. From: Stewart Levin <stew@sep.stanford.edu>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: "Flushing" input characters during scripting?
  12. Date: Thu, 12 Feb 1998 09:20:26 -0800
  13. Organization: Stanford Exploration Project
  14. Lines: 31
  15. Message-ID: <34E32F5A.36AF@sep.stanford.edu>
  16. References: <rm4t26x9fk.fsf@fluent.com> <6bsspi$nin$1@apakabar.cc.columbia.edu> <rm1zx9y9cz.fsf@fluent.com>
  17. NNTP-Posting-Host: panum.stanford.edu
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Mailer: Mozilla 3.0Gold (X11; I; HP-UX B.10.01 9000/712)
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:8401
  23.  
  24. [ Latest kermit, RedHat Linux 3 (not the latest) on a Gateway 2000 PC. ]
  25.  
  26. Over a dialup connection, I am feeding a short list
  27. of items to a text-based application that reformats and
  28. standardizes them against a database.  Using the INPUT
  29. and OUTPUT commands to control the flow, I capture the
  30. relevant lines of application response to a log file
  31. from whence I extract the updated items offline.
  32.  
  33. One ugly hack I'd like to get rid of is using an
  34.  
  35. INPUT 1 ZZZZZ
  36.  
  37. to flush characters arriving after an end-of-item line
  38. and before a subsequent item input prompt.  Without it,
  39. the kermit application quickly hangs, presumably because
  40. of buffer limits.  Is there a better solution?  (Yes,
  41. I did try a couple of commands in the reference manual
  42. that reset or flush internal buffers.)
  43.  
  44. Also, I found that when I wrote my test scripts to include
  45. fully-spelled out kermit commands and fully checking
  46. all status codes, the script produced wierd error messages.
  47. Abbreviating the commands made the problem go away.
  48.  
  49. Any tips on other ways to conserve scripting buffer space?
  50. Embedded TAKE commands?  Looping macros versus straight line
  51. expansion?
  52.  
  53. - Stew Levin
  54.   stew@sep.stanford.edu